<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:pou="http://primefaces.org/ui">

    
    <h:head>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
    </h:head>
    <body>

        <ui:composition template="./templates/oldTemplate.xhtml">

            
            <ui:define name="content">
                <div class="article">
                     
                <h:form>
                    
                    <pou:panel header="#{msgs.main_PanelName}">
                         
                        <h:panelGrid columns="1">
                            
                            <pou:selectOneMenu id="envSelect" effect="fade" value="#{mainViewBean.selectedEnvironment}">
                                <f:selectItem itemLabel="#{msgs.main_Environment}" itemValue=""/>
                                <f:selectItems value="#{mainViewBean.envs}"/>
                            </pou:selectOneMenu>
                        </h:panelGrid>
                        
                   
                     
                    
                    </pou:panel>
                    
                    <br/>
                     <pou:commandButton value="#{msgs.main_searchBtn}" action="#{mainViewBean.loadInterfacesWithEnv}" update="interfaceTable"></pou:commandButton><br/>
                    <br/>
                    <br/>
                    <pou:dataTable value="#{mainViewBean.foundInterfaces}" var="interface" id="interfaceTable">
                    
                        <pou:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs.main_TableCol1}"/>
                            </f:facet>
                            <h:outputText value="#{interface.logInterfaceName}"/>
                        </pou:column>
                        
                        <pou:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs.main_TableCol2}"/>
                            </f:facet>
                            <h:outputText value="#{interface.logInterfaceVersion}"/>
                        </pou:column>
                        
                        <pou:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs.main_TableCol3}"/>
                            </f:facet>
                            <h:outputText value="#{interface.integrationType}"/>
                        </pou:column>
                        
                    </pou:dataTable>
                    
                    <pou:ajaxStatus style="width:16px;height:16px;">  
                        <f:facet name="start">  
                            <h:graphicImage value="images/loading.gif" />  
                        </f:facet>  

                        <f:facet name="complete">  
                            <h:outputText value="" />  
                        </f:facet>  
                    </pou:ajaxStatus>
                    
                </h:form>
                
                </div>
            </ui:define>

        </ui:composition>

    </body>
</html>
